using ICSharpCode.SharpZipLib.Zip;
using System;
using System.IO;
using System.IO.IsolatedStorage;
namespace Salient.SharpZipLib.Zip
{
	public class IsolatedStaticDiskDataSource : IStaticDataSource
	{
		private string fileName_;
		public IsolatedStaticDiskDataSource(string fileName)
		{
			this.fileName_ = fileName;
		}
		public Stream GetSource()
		{
			Stream result;
			using (IsolatedStorageFile userStoreForApplication = IsolatedStorageFile.GetUserStoreForApplication())
			{
				result = userStoreForApplication.OpenFile(this.fileName_, 3, 1, 1);
			}
			return result;
		}
	}
}
